// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'sys_role_member',
			'member_type',
			'member_dn',
			'srfkey',
			'srfdataaccaction',
			'role_id',
			'member_uid',
			'srfmajortext',
			'srfmstag',
			...wfKey,
		];
	}

	get member_type() {
		return this.$DO.member_type;
	}

	set member_type(value: any) {
		this.$DO.member_type = value;
	}
	get member_dn() {
		return this.$DO.member_dn;
	}

	set member_dn(value: any) {
		this.$DO.member_dn = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get role_id() {
		return this.$DO.role_id;
	}

	set role_id(value: any) {
		this.$DO.role_id = value;
	}
	get member_uid() {
		return this.$DO.member_uid;
	}

	set member_uid(value: any) {
		this.$DO.member_uid = value;
	}
	get srfmajortext() {
		return this.$DO.id;
	}

	set srfmajortext(value: any) {
		this.$DO.id = value;
	}

	set sys_role_member(value: any) {
		this.$DO.id = value;
	}
	get sys_role_member() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
